package com.example.neo4j.pojo.relationship;

import com.example.neo4j.pojo.node.Hobby;
import lombok.Data;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.RelationshipId;
import org.springframework.data.neo4j.core.schema.RelationshipProperties;
import org.springframework.data.neo4j.core.schema.TargetNode;

@Data
@RelationshipProperties
public class Like {

    @RelationshipId
    private Long id;

    @TargetNode
    private Hobby hobby;
}